﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="JQueryDTO.Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"><script type="text/javascript">
        $(document).ready(function() {
            var DTO = {};
            ClientProxyDateFormatted("DoWork", "Service.svc", DTO, function(msg) { CompanySuccess(msg); },
                function(xhr, status, error) { ErrorGetCompanies(xhr, status, error); });
        });

        function CompanySuccess(msg) {
            alert("Inside Success");
        }

        function ErrorGetCompanies(xhr, status, error) {
            alert("Inside Failure");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
